-
Notifications
You must be signed in to change notification settings - Fork 917
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add openAPI doc for saved_object find api #6856
Conversation
Signed-off-by: Yuanqi(Ella) Zhu <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6856 +/- ##
=======================================
Coverage 67.38% 67.38%
=======================================
Files 3443 3443
Lines 67797 67797
Branches 11033 11033
=======================================
Hits 45688 45688
Misses 19440 19440
Partials 2669 2669
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
description: The search query that filters the saved objects. | ||
schema: | ||
type: string | ||
example: "open*" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there a specified syntax for the search query? e.g. is it just glob
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It uses simple_query_string query that filters the objects in the response. The syntax is quite simple
+ signifies AND operation
| signifies OR operation
- negates a single token
" wraps a number of tokens to signify a phrase for searching
* at the end of a term signifies a prefix query
( and ) signify precedence
~N after a word signifies edit distance (fuzziness)
~N after a phrase signifies slop amount
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will update the description here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will update the description in the next PR
* Add openAPI doc for saved_object find api Signed-off-by: Yuanqi(Ella) Zhu <[email protected]> * Changeset file for PR #6856 created/updated --------- Signed-off-by: Yuanqi(Ella) Zhu <[email protected]> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> (cherry picked from commit 026dd38) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Add openAPI doc for saved_object find api * Changeset file for PR #6856 created/updated --------- (cherry picked from commit 026dd38) Signed-off-by: Yuanqi(Ella) Zhu <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
* Add openAPI doc for saved_object find api Signed-off-by: Yuanqi(Ella) Zhu <[email protected]> * Changeset file for PR opensearch-project#6856 created/updated --------- Signed-off-by: Yuanqi(Ella) Zhu <[email protected]> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
Description
Add openAPI doc for saved_object find api
Issues Resolved
#6719
Screenshot
Changelog
Check List
yarn test:jest
yarn test:jest_integration